package com.xxh.kfc.dao;

import com.xxh.kfc.entity.User;

public interface UserDao {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 登录的DAO
     * @param uname
     * @param pwd
     * @return
     */
    User login(String uname,String pwd);
}